home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12815 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.4 KB  |  41 lines

  1. Path: news.iosphere.net!usenet
  2. From: ianq@sonetis.com (Ian V. Quickmire)
  3. Newsgroups: comp.lang.c++,comp.lang.c
  4. Subject: Re: HELP!: Error when trying to use cout in MSVC++ 4.0!
  5. Date: Thu, 21 Mar 1996 20:40:10 GMT
  6. Organization: IQ Systems Ltd.
  7. Distribution: inet
  8. Message-ID: <4isetb$17b@lisa.iosphere.net>
  9. References: <4i5kpd$eic@mirv.unsw.edu.au> <13MAR199607405255@erich.triumf.ca>
  10. Reply-To: ianq@sonetis.com
  11. NNTP-Posting-Host: port034-53-yow.iosphere.net
  12. X-Newsreader: Forte Free Agent 1.0.82
  13.  
  14. bennett@erich.triumf.ca (P.Bennett) wrote:
  15.  
  16. >In article <4i5kpd$eic@mirv.unsw.edu.au>, s2139589@cse.unsw.edu.au (CC) writes...
  17. >>Hi,
  18. >> 
  19. >>I am having trouble compiling a very simple program consisting of one
  20. >>line of code in main(). I am using Microsoft Visual C++ Version 4.0 on
  21. >>WIN95.  Basically I am trying to use cout to print a word, however the
  22. >>compiler keeps generating the following error:
  23. >> 
  24. >>E:\Labs\lab1.c(4) : error C2065: 'cout' : undeclared identifier
  25. >>E:\Labs\lab1.c(4) : error C2297: '<<' : bad right operand
  26. >>Error executing cl.exe.
  27. >>lab1.obj - 2 error(s), 0 warning(s)
  28.  
  29. Did you include the necessary header files for the cout function?
  30.  
  31. #include <iostream.h>
  32. #include <fstream.h>
  33.  
  34. ...
  35.  
  36. --------------------------------------------------------------
  37. Work: izq00@ccc.amdahl.com              Home: ianq@sonetis.com
  38. WWW: http://www.sonetis.com/~ianq/      CIS: 74032,573
  39. --------------------------------------------------------------
  40.  
  41.